package com.cn.lyl.service;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cn.lyl.dao.LogMapper;
import com.cn.lyl.tool.MyBatisUtil;

@Service("Log")
public class LogServiceImpl implements LogService {
/*	@Autowired
	SqlSession sqlSession=null;
	int count=0;
	//@Override
	public int count() {
		try {
			sqlSession=MyBatisUtil.createSqlSession();
			count=sqlSession.getMapper(LogMapper.class).count();
			sqlSession.commit();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			sqlSession.rollback();
		}finally {
			MyBatisUtil.closeSqlSession(sqlSession);
		}
		return count;
	}*/
}
